<?php



class TaxlinesMapBuilder implements MapBuilder {

	
	const CLASS_NAME = 'lib.model.openbravo.map.TaxlinesMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap(TaxlinesPeer::DATABASE_NAME);

		$tMap = $this->dbMap->addTable(TaxlinesPeer::TABLE_NAME);
		$tMap->setPhpName('Taxlines');
		$tMap->setClassname('Taxlines');

		$tMap->setUseIdGenerator(false);

		$tMap->addPrimaryKey('ID', 'Id', 'VARCHAR', true, 255);

		$tMap->addColumn('RECEIPT', 'Receipt', 'VARCHAR', true, 255);

		$tMap->addForeignKey('TAXID', 'Taxid', 'VARCHAR', 'TAXES', 'ID', true, 255);

		$tMap->addColumn('BASE', 'Base', 'DOUBLE', true, null);

		$tMap->addColumn('AMOUNT', 'Amount', 'DOUBLE', true, null);

	} 
} 